FindRowByColumnIndex

Returns a row index for a table cell located using the column index and property/expected value pairs. Searches the specified column to find the cell, or control in the cell, that has property values that match the expected values.

Syntax

FindRowByColumnIndex(SearchColIndex, "PropertyName", "ExpectedValue", ...)

Note: You can enter multiple property/expected value pairs to better identify a control. Separate each property and value with a comma.

Arguments

Argument Description
SearchColIndex Table column index number to search.
PropertyName Property name to search for.
ExpectedValue Value to search for.

Supported objects

HTMLTable

Return value

Value Description
Value Row index of the table cell.
-1 Table cell not found.

Example

ID = Cell("D")

rowIndex = Window("Documents").HTMLTable("List").FindRowByColumnIndex(1, "Inner Text", ID)

Window("Documents").HTMLLink(Window("Documents").HTMLTable("List").GetControlFromTable("HTMLLink", rowIndex, 2)).Click()